/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.portal.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-05-23
 * @version 1.0
 * @since 1.0
 */
public class WechatReplyCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static WechatReplyCriteria create() {
		return new WechatReplyCriteria();
	}
	
	public static WechatReplyCriteria create(Column column) {
		WechatReplyCriteria that = new WechatReplyCriteria();
		that.add(column);
        return that;
    }

    public static WechatReplyCriteria create(String name, Object value) {
        return (WechatReplyCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("cms_wechat_reply", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public WechatReplyCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public WechatReplyCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public WechatReplyCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public WechatReplyCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public WechatReplyCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public WechatReplyCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public WechatReplyCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public WechatReplyCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public WechatReplyCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public WechatReplyCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public WechatReplyCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public WechatReplyCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public WechatReplyCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public WechatReplyCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public WechatReplyCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public WechatReplyCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public WechatReplyCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public WechatReplyCriteria andIdEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdNotEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdGreaterThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdLessThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Long", "Float");
    	  return this;
      }

      public WechatReplyCriteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Long", "Float");
          return this;
      }
        
      public WechatReplyCriteria andIdIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Long", "Float");
          return this;
      }

      public WechatReplyCriteria andIdNotIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Long", "Float");
          return this;
      }
	public WechatReplyCriteria andKeywordIsNull() {
		isnull("keyword");
		return this;
	}
	
	public WechatReplyCriteria andKeywordIsNotNull() {
		notNull("keyword");
		return this;
	}
	
	public WechatReplyCriteria andKeywordIsEmpty() {
		empty("keyword");
		return this;
	}

	public WechatReplyCriteria andKeywordIsNotEmpty() {
		notEmpty("keyword");
		return this;
	}
        public WechatReplyCriteria andKeywordLike(java.lang.String value) {
    	   addCriterion("keyword", value, ConditionMode.FUZZY, "keyword", "java.lang.String", "Float");
    	   return this;
      }

      public WechatReplyCriteria andKeywordNotLike(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.NOT_FUZZY, "keyword", "java.lang.String", "Float");
          return this;
      }
      public WechatReplyCriteria andKeywordEqualTo(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.EQUAL, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordNotEqualTo(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.NOT_EQUAL, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordGreaterThan(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.GREATER_THEN, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.GREATER_EQUAL, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordLessThan(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.LESS_THEN, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordLessThanOrEqualTo(java.lang.String value) {
          addCriterion("keyword", value, ConditionMode.LESS_EQUAL, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("keyword", value1, value2, ConditionMode.BETWEEN, "keyword", "java.lang.String", "String");
    	  return this;
      }

      public WechatReplyCriteria andKeywordNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("keyword", value1, value2, ConditionMode.NOT_BETWEEN, "keyword", "java.lang.String", "String");
          return this;
      }
        
      public WechatReplyCriteria andKeywordIn(List<java.lang.String> values) {
          addCriterion("keyword", values, ConditionMode.IN, "keyword", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andKeywordNotIn(List<java.lang.String> values) {
          addCriterion("keyword", values, ConditionMode.NOT_IN, "keyword", "java.lang.String", "String");
          return this;
      }
	public WechatReplyCriteria andContentIsNull() {
		isnull("content");
		return this;
	}
	
	public WechatReplyCriteria andContentIsNotNull() {
		notNull("content");
		return this;
	}
	
	public WechatReplyCriteria andContentIsEmpty() {
		empty("content");
		return this;
	}

	public WechatReplyCriteria andContentIsNotEmpty() {
		notEmpty("content");
		return this;
	}
        public WechatReplyCriteria andContentLike(java.lang.String value) {
    	   addCriterion("content", value, ConditionMode.FUZZY, "content", "java.lang.String", "String");
    	   return this;
      }

      public WechatReplyCriteria andContentNotLike(java.lang.String value) {
          addCriterion("content", value, ConditionMode.NOT_FUZZY, "content", "java.lang.String", "String");
          return this;
      }
      public WechatReplyCriteria andContentEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentNotEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.NOT_EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentGreaterThan(java.lang.String value) {
          addCriterion("content", value, ConditionMode.GREATER_THEN, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.GREATER_EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentLessThan(java.lang.String value) {
          addCriterion("content", value, ConditionMode.LESS_THEN, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentLessThanOrEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.LESS_EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("content", value1, value2, ConditionMode.BETWEEN, "content", "java.lang.String", "String");
    	  return this;
      }

      public WechatReplyCriteria andContentNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("content", value1, value2, ConditionMode.NOT_BETWEEN, "content", "java.lang.String", "String");
          return this;
      }
        
      public WechatReplyCriteria andContentIn(List<java.lang.String> values) {
          addCriterion("content", values, ConditionMode.IN, "content", "java.lang.String", "String");
          return this;
      }

      public WechatReplyCriteria andContentNotIn(List<java.lang.String> values) {
          addCriterion("content", values, ConditionMode.NOT_IN, "content", "java.lang.String", "String");
          return this;
      }
	public WechatReplyCriteria andCreatedIsNull() {
		isnull("created");
		return this;
	}
	
	public WechatReplyCriteria andCreatedIsNotNull() {
		notNull("created");
		return this;
	}
	
	public WechatReplyCriteria andCreatedIsEmpty() {
		empty("created");
		return this;
	}

	public WechatReplyCriteria andCreatedIsNotEmpty() {
		notEmpty("created");
		return this;
	}
       public WechatReplyCriteria andCreatedEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedNotEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.NOT_EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedGreaterThan(java.util.Date value) {
          addCriterion("created", value, ConditionMode.GREATER_THEN, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.GREATER_EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedLessThan(java.util.Date value) {
          addCriterion("created", value, ConditionMode.LESS_THEN, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedLessThanOrEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.LESS_EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("created", value1, value2, ConditionMode.BETWEEN, "created", "java.util.Date", "String");
    	  return this;
      }

      public WechatReplyCriteria andCreatedNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("created", value1, value2, ConditionMode.NOT_BETWEEN, "created", "java.util.Date", "String");
          return this;
      }
        
      public WechatReplyCriteria andCreatedIn(List<java.util.Date> values) {
          addCriterion("created", values, ConditionMode.IN, "created", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andCreatedNotIn(List<java.util.Date> values) {
          addCriterion("created", values, ConditionMode.NOT_IN, "created", "java.util.Date", "String");
          return this;
      }
	public WechatReplyCriteria andModifiedIsNull() {
		isnull("modified");
		return this;
	}
	
	public WechatReplyCriteria andModifiedIsNotNull() {
		notNull("modified");
		return this;
	}
	
	public WechatReplyCriteria andModifiedIsEmpty() {
		empty("modified");
		return this;
	}

	public WechatReplyCriteria andModifiedIsNotEmpty() {
		notEmpty("modified");
		return this;
	}
       public WechatReplyCriteria andModifiedEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedNotEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.NOT_EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedGreaterThan(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.GREATER_THEN, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.GREATER_EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedLessThan(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.LESS_THEN, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedLessThanOrEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.LESS_EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("modified", value1, value2, ConditionMode.BETWEEN, "modified", "java.util.Date", "String");
    	  return this;
      }

      public WechatReplyCriteria andModifiedNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("modified", value1, value2, ConditionMode.NOT_BETWEEN, "modified", "java.util.Date", "String");
          return this;
      }
        
      public WechatReplyCriteria andModifiedIn(List<java.util.Date> values) {
          addCriterion("modified", values, ConditionMode.IN, "modified", "java.util.Date", "String");
          return this;
      }

      public WechatReplyCriteria andModifiedNotIn(List<java.util.Date> values) {
          addCriterion("modified", values, ConditionMode.NOT_IN, "modified", "java.util.Date", "String");
          return this;
      }
}